package cn.tedu._05mvcboot03.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {
    @NotBlank
    @Size(min = 1,max = 20)
    @ApiModelProperty(value = "文章标题",required = true)
    private String title;
    @NotBlank
    @Size(min = 10,max = 500)
    @ApiModelProperty(value = "文章内容",required = true)
    private String content;
}
